package com.moyu.crowdsource.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ExpressOrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ExpressOrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andExpressOrderIdIsNull() {
            addCriterion("express_order_id is null");
            return (Criteria) this;
        }

        public Criteria andExpressOrderIdIsNotNull() {
            addCriterion("express_order_id is not null");
            return (Criteria) this;
        }

        public Criteria andExpressOrderIdEqualTo(String value) {
            addCriterion("express_order_id =", value, "expressOrderId");
            return (Criteria) this;
        }

        public Criteria andExpressOrderIdNotEqualTo(String value) {
            addCriterion("express_order_id <>", value, "expressOrderId");
            return (Criteria) this;
        }

        public Criteria andExpressOrderIdGreaterThan(String value) {
            addCriterion("express_order_id >", value, "expressOrderId");
            return (Criteria) this;
        }

        public Criteria andExpressOrderIdGreaterThanOrEqualTo(String value) {
            addCriterion("express_order_id >=", value, "expressOrderId");
            return (Criteria) this;
        }

        public Criteria andExpressOrderIdLessThan(String value) {
            addCriterion("express_order_id <", value, "expressOrderId");
            return (Criteria) this;
        }

        public Criteria andExpressOrderIdLessThanOrEqualTo(String value) {
            addCriterion("express_order_id <=", value, "expressOrderId");
            return (Criteria) this;
        }

        public Criteria andExpressOrderIdLike(String value) {
            addCriterion("express_order_id like", value, "expressOrderId");
            return (Criteria) this;
        }

        public Criteria andExpressOrderIdNotLike(String value) {
            addCriterion("express_order_id not like", value, "expressOrderId");
            return (Criteria) this;
        }

        public Criteria andExpressOrderIdIn(List<String> values) {
            addCriterion("express_order_id in", values, "expressOrderId");
            return (Criteria) this;
        }

        public Criteria andExpressOrderIdNotIn(List<String> values) {
            addCriterion("express_order_id not in", values, "expressOrderId");
            return (Criteria) this;
        }

        public Criteria andExpressOrderIdBetween(String value1, String value2) {
            addCriterion("express_order_id between", value1, value2, "expressOrderId");
            return (Criteria) this;
        }

        public Criteria andExpressOrderIdNotBetween(String value1, String value2) {
            addCriterion("express_order_id not between", value1, value2, "expressOrderId");
            return (Criteria) this;
        }

        public Criteria andDeliveryAddressIsNull() {
            addCriterion("delivery_address is null");
            return (Criteria) this;
        }

        public Criteria andDeliveryAddressIsNotNull() {
            addCriterion("delivery_address is not null");
            return (Criteria) this;
        }

        public Criteria andDeliveryAddressEqualTo(String value) {
            addCriterion("delivery_address =", value, "deliveryAddress");
            return (Criteria) this;
        }

        public Criteria andDeliveryAddressNotEqualTo(String value) {
            addCriterion("delivery_address <>", value, "deliveryAddress");
            return (Criteria) this;
        }

        public Criteria andDeliveryAddressGreaterThan(String value) {
            addCriterion("delivery_address >", value, "deliveryAddress");
            return (Criteria) this;
        }

        public Criteria andDeliveryAddressGreaterThanOrEqualTo(String value) {
            addCriterion("delivery_address >=", value, "deliveryAddress");
            return (Criteria) this;
        }

        public Criteria andDeliveryAddressLessThan(String value) {
            addCriterion("delivery_address <", value, "deliveryAddress");
            return (Criteria) this;
        }

        public Criteria andDeliveryAddressLessThanOrEqualTo(String value) {
            addCriterion("delivery_address <=", value, "deliveryAddress");
            return (Criteria) this;
        }

        public Criteria andDeliveryAddressLike(String value) {
            addCriterion("delivery_address like", value, "deliveryAddress");
            return (Criteria) this;
        }

        public Criteria andDeliveryAddressNotLike(String value) {
            addCriterion("delivery_address not like", value, "deliveryAddress");
            return (Criteria) this;
        }

        public Criteria andDeliveryAddressIn(List<String> values) {
            addCriterion("delivery_address in", values, "deliveryAddress");
            return (Criteria) this;
        }

        public Criteria andDeliveryAddressNotIn(List<String> values) {
            addCriterion("delivery_address not in", values, "deliveryAddress");
            return (Criteria) this;
        }

        public Criteria andDeliveryAddressBetween(String value1, String value2) {
            addCriterion("delivery_address between", value1, value2, "deliveryAddress");
            return (Criteria) this;
        }

        public Criteria andDeliveryAddressNotBetween(String value1, String value2) {
            addCriterion("delivery_address not between", value1, value2, "deliveryAddress");
            return (Criteria) this;
        }

        public Criteria andSchoolLocationIsNull() {
            addCriterion("school_location is null");
            return (Criteria) this;
        }

        public Criteria andSchoolLocationIsNotNull() {
            addCriterion("school_location is not null");
            return (Criteria) this;
        }

        public Criteria andSchoolLocationEqualTo(String value) {
            addCriterion("school_location =", value, "schoolLocation");
            return (Criteria) this;
        }

        public Criteria andSchoolLocationNotEqualTo(String value) {
            addCriterion("school_location <>", value, "schoolLocation");
            return (Criteria) this;
        }

        public Criteria andSchoolLocationGreaterThan(String value) {
            addCriterion("school_location >", value, "schoolLocation");
            return (Criteria) this;
        }

        public Criteria andSchoolLocationGreaterThanOrEqualTo(String value) {
            addCriterion("school_location >=", value, "schoolLocation");
            return (Criteria) this;
        }

        public Criteria andSchoolLocationLessThan(String value) {
            addCriterion("school_location <", value, "schoolLocation");
            return (Criteria) this;
        }

        public Criteria andSchoolLocationLessThanOrEqualTo(String value) {
            addCriterion("school_location <=", value, "schoolLocation");
            return (Criteria) this;
        }

        public Criteria andSchoolLocationLike(String value) {
            addCriterion("school_location like", value, "schoolLocation");
            return (Criteria) this;
        }

        public Criteria andSchoolLocationNotLike(String value) {
            addCriterion("school_location not like", value, "schoolLocation");
            return (Criteria) this;
        }

        public Criteria andSchoolLocationIn(List<String> values) {
            addCriterion("school_location in", values, "schoolLocation");
            return (Criteria) this;
        }

        public Criteria andSchoolLocationNotIn(List<String> values) {
            addCriterion("school_location not in", values, "schoolLocation");
            return (Criteria) this;
        }

        public Criteria andSchoolLocationBetween(String value1, String value2) {
            addCriterion("school_location between", value1, value2, "schoolLocation");
            return (Criteria) this;
        }

        public Criteria andSchoolLocationNotBetween(String value1, String value2) {
            addCriterion("school_location not between", value1, value2, "schoolLocation");
            return (Criteria) this;
        }

        public Criteria andWeightIsNull() {
            addCriterion("weight is null");
            return (Criteria) this;
        }

        public Criteria andWeightIsNotNull() {
            addCriterion("weight is not null");
            return (Criteria) this;
        }

        public Criteria andWeightEqualTo(Integer value) {
            addCriterion("weight =", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotEqualTo(Integer value) {
            addCriterion("weight <>", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThan(Integer value) {
            addCriterion("weight >", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThanOrEqualTo(Integer value) {
            addCriterion("weight >=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThan(Integer value) {
            addCriterion("weight <", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThanOrEqualTo(Integer value) {
            addCriterion("weight <=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightIn(List<Integer> values) {
            addCriterion("weight in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotIn(List<Integer> values) {
            addCriterion("weight not in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightBetween(Integer value1, Integer value2) {
            addCriterion("weight between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotBetween(Integer value1, Integer value2) {
            addCriterion("weight not between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(BigDecimal value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(BigDecimal value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(BigDecimal value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(BigDecimal value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<BigDecimal> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<BigDecimal> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andTakeOrderUserIdIsNull() {
            addCriterion("take_order_user_id is null");
            return (Criteria) this;
        }

        public Criteria andTakeOrderUserIdIsNotNull() {
            addCriterion("take_order_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andTakeOrderUserIdEqualTo(Integer value) {
            addCriterion("take_order_user_id =", value, "takeOrderUserId");
            return (Criteria) this;
        }

        public Criteria andTakeOrderUserIdNotEqualTo(Integer value) {
            addCriterion("take_order_user_id <>", value, "takeOrderUserId");
            return (Criteria) this;
        }

        public Criteria andTakeOrderUserIdGreaterThan(Integer value) {
            addCriterion("take_order_user_id >", value, "takeOrderUserId");
            return (Criteria) this;
        }

        public Criteria andTakeOrderUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("take_order_user_id >=", value, "takeOrderUserId");
            return (Criteria) this;
        }

        public Criteria andTakeOrderUserIdLessThan(Integer value) {
            addCriterion("take_order_user_id <", value, "takeOrderUserId");
            return (Criteria) this;
        }

        public Criteria andTakeOrderUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("take_order_user_id <=", value, "takeOrderUserId");
            return (Criteria) this;
        }

        public Criteria andTakeOrderUserIdIn(List<Integer> values) {
            addCriterion("take_order_user_id in", values, "takeOrderUserId");
            return (Criteria) this;
        }

        public Criteria andTakeOrderUserIdNotIn(List<Integer> values) {
            addCriterion("take_order_user_id not in", values, "takeOrderUserId");
            return (Criteria) this;
        }

        public Criteria andTakeOrderUserIdBetween(Integer value1, Integer value2) {
            addCriterion("take_order_user_id between", value1, value2, "takeOrderUserId");
            return (Criteria) this;
        }

        public Criteria andTakeOrderUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("take_order_user_id not between", value1, value2, "takeOrderUserId");
            return (Criteria) this;
        }

        public Criteria andDeliveryUserIdIsNull() {
            addCriterion("delivery_user_id is null");
            return (Criteria) this;
        }

        public Criteria andDeliveryUserIdIsNotNull() {
            addCriterion("delivery_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeliveryUserIdEqualTo(Integer value) {
            addCriterion("delivery_user_id =", value, "deliveryUserId");
            return (Criteria) this;
        }

        public Criteria andDeliveryUserIdNotEqualTo(Integer value) {
            addCriterion("delivery_user_id <>", value, "deliveryUserId");
            return (Criteria) this;
        }

        public Criteria andDeliveryUserIdGreaterThan(Integer value) {
            addCriterion("delivery_user_id >", value, "deliveryUserId");
            return (Criteria) this;
        }

        public Criteria andDeliveryUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("delivery_user_id >=", value, "deliveryUserId");
            return (Criteria) this;
        }

        public Criteria andDeliveryUserIdLessThan(Integer value) {
            addCriterion("delivery_user_id <", value, "deliveryUserId");
            return (Criteria) this;
        }

        public Criteria andDeliveryUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("delivery_user_id <=", value, "deliveryUserId");
            return (Criteria) this;
        }

        public Criteria andDeliveryUserIdIn(List<Integer> values) {
            addCriterion("delivery_user_id in", values, "deliveryUserId");
            return (Criteria) this;
        }

        public Criteria andDeliveryUserIdNotIn(List<Integer> values) {
            addCriterion("delivery_user_id not in", values, "deliveryUserId");
            return (Criteria) this;
        }

        public Criteria andDeliveryUserIdBetween(Integer value1, Integer value2) {
            addCriterion("delivery_user_id between", value1, value2, "deliveryUserId");
            return (Criteria) this;
        }

        public Criteria andDeliveryUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("delivery_user_id not between", value1, value2, "deliveryUserId");
            return (Criteria) this;
        }

        public Criteria andIssueTimeIsNull() {
            addCriterion("issue_time is null");
            return (Criteria) this;
        }

        public Criteria andIssueTimeIsNotNull() {
            addCriterion("issue_time is not null");
            return (Criteria) this;
        }

        public Criteria andIssueTimeEqualTo(Date value) {
            addCriterion("issue_time =", value, "issueTime");
            return (Criteria) this;
        }

        public Criteria andIssueTimeNotEqualTo(Date value) {
            addCriterion("issue_time <>", value, "issueTime");
            return (Criteria) this;
        }

        public Criteria andIssueTimeGreaterThan(Date value) {
            addCriterion("issue_time >", value, "issueTime");
            return (Criteria) this;
        }

        public Criteria andIssueTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("issue_time >=", value, "issueTime");
            return (Criteria) this;
        }

        public Criteria andIssueTimeLessThan(Date value) {
            addCriterion("issue_time <", value, "issueTime");
            return (Criteria) this;
        }

        public Criteria andIssueTimeLessThanOrEqualTo(Date value) {
            addCriterion("issue_time <=", value, "issueTime");
            return (Criteria) this;
        }

        public Criteria andIssueTimeIn(List<Date> values) {
            addCriterion("issue_time in", values, "issueTime");
            return (Criteria) this;
        }

        public Criteria andIssueTimeNotIn(List<Date> values) {
            addCriterion("issue_time not in", values, "issueTime");
            return (Criteria) this;
        }

        public Criteria andIssueTimeBetween(Date value1, Date value2) {
            addCriterion("issue_time between", value1, value2, "issueTime");
            return (Criteria) this;
        }

        public Criteria andIssueTimeNotBetween(Date value1, Date value2) {
            addCriterion("issue_time not between", value1, value2, "issueTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeIsNull() {
            addCriterion("take_time is null");
            return (Criteria) this;
        }

        public Criteria andTakeTimeIsNotNull() {
            addCriterion("take_time is not null");
            return (Criteria) this;
        }

        public Criteria andTakeTimeEqualTo(Date value) {
            addCriterion("take_time =", value, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeNotEqualTo(Date value) {
            addCriterion("take_time <>", value, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeGreaterThan(Date value) {
            addCriterion("take_time >", value, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("take_time >=", value, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeLessThan(Date value) {
            addCriterion("take_time <", value, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeLessThanOrEqualTo(Date value) {
            addCriterion("take_time <=", value, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeIn(List<Date> values) {
            addCriterion("take_time in", values, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeNotIn(List<Date> values) {
            addCriterion("take_time not in", values, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeBetween(Date value1, Date value2) {
            addCriterion("take_time between", value1, value2, "takeTime");
            return (Criteria) this;
        }

        public Criteria andTakeTimeNotBetween(Date value1, Date value2) {
            addCriterion("take_time not between", value1, value2, "takeTime");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}